home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / News / Alexandra.0.82 / Source / descriptors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-30  |  854 b   |  45 lines

  1. // use for nntp "list" reply
  2. typedef struct _newsgroupDesc{
  3.    char *groupname;
  4.    long max;
  5.    long min;
  6.    char post;
  7. } newsgroupDesc;
  8.  
  9. //used for nntp "xhdr"+"xover" reply 
  10. typedef struct _subjectDesc{
  11.    long number;
  12.    int artsize;
  13.    int lines;
  14.    char **fieldBody;   
  15. } subjectDesc;
  16.  
  17. //used by "Article" Object to store header information
  18. #define SUBJECT 0
  19. #define FROM 1
  20. #define DATE 2
  21. #define MSG_ID 3
  22. #define REFS 4
  23. #define REPLY_TO 5
  24. #define FOLLOWUP_TO 6
  25. #define NEWSGROUPS 7
  26. #define ORGANIZATION 8
  27. #define FIELD_COUNT 9
  28. #define XOVER_COUNT 5
  29.  
  30. typedef struct _headerDesc {
  31.    char **fieldBody;
  32. } headerDesc;
  33.  
  34. //sort types for the article list
  35.  
  36. #define SORT_BY_NUMBER 0
  37. #define SORT_BY_DATE 1
  38. #define SORT_BY_SUBJECT 2
  39. #define SORT_BY_REAL_NAME 3
  40.  
  41.  
  42. // sort types for the newsgroup list
  43. #define SORT_BY_NAME 0
  44. #define SORT_BY_SELECT_PRIORITY 1
  45.